const fs = require('fs');
const path = require('path');

try {
  fs.writeFileSync(path.join(__dirname, 'test.log'), 'File write test successful.');
  console.log('Test log file created successfully.');
} catch (error) {
  console.error('Failed to write test log file:', error);
}